<!--
	作者：956911785@qq.com
	时间：2019年11月20日17:25:28
	描述：学生管理
-->

<template>
	<div style="width:100%;">
		<div style="background: #fff;">
			<div style="width:100%;float:left;padding-top: 10px;padding-bottom: 10px;">
				<div style="width:5%;text-align: right;float:left;line-height:32px;">姓名：</div>
				<div style="width:15%;float:left;">
					<Input v-model="tj.sname"  clearable  style="width: 90%;float:left;" />
				</div>
				<div style="text-align: right;float:left;line-height:32px;padding-left:10px;">身份证号：</div>
				<div style="width:15%;float:left;">
					<Input v-model="tj.sfzh"  clearable  style="width: 90%;float:left;" />
				</div>
				<div style="text-align: right;float:left;line-height:32px;padding-left:10px;">年级：</div>
				<div style="width:15%;float:left;">
					<Input v-model="tj.nj"  clearable  style="width: 90%;float:left;" />
				</div>
				<div style="text-align: right;float:left;line-height:32px;padding-left:10px;">班级：</div>
				<div style="width:15%;float:left;">
					<Input v-model="tj.bj"  clearable  style="width: 90%;float:left;" />
				</div>
			</div>
			<div style="width:100%;float:left;padding-bottom: 10px;">
				<div style="width:30%;text-align: left;float:left;padding-left:5%;">
					<Button v-on:click="search()" style="margin-left:1%;background: #ffa500;color:#fff;border:1px solid #ffa500;">搜索</Button>
	            	<Button v-on:click="addStudent()" icon="md-add" type="primary" style="background-color: #3fc1c9;border:1px solid #3fc1c9;">新增学生</Button>
	            	<Button v-on:click="importStudent()" icon="md-cloud-upload" type="primary" style="background-color: #8B8378;border:1px solid #8B8378;">导入</Button>
				</div>
			</div>
		</div>
		<div>
			<ss :tj="tj" ref="studentss" ></ss>
		</div>
		<add ref="addstudent" v-on:reload="search()"></add>
		<imports ref="importstudent" v-on:reload="search()"></imports>
	</div>
</template>

<script>
	import ss from "./ss";
	import add from "./add";
	import imports from "./import";
	export default {
		name: "studentmanage",
		data() {
			return {
				tj: {
					sname:'',//学生姓名
					sfzh:'',//身份证
					nj:'',//年级
					bj:'',//班级
				},
				selections:[]//被选中的项
			}
		},
		methods: {
			search(){
				this.$refs.studentss.load();
			},
	        resettj(){
				this.tj.sname='';
				this.tj.sfzh='';
				this.tj.nj='';
				this.tj.bj='';
	        },
	        addStudent(){
	        	this.$refs.addstudent.openmodal();
	        },
	        importStudent(){
	        	this.$refs.importstudent.modal0=true;
	        },
	        
		},
		components: {
			ss,
			add,
			imports
		},
		mounted(){
		},
		watch:{
		},
		computed: {
		}
	}
</script>

<style>
</style>